package mankind;

public class ManKind {
    public int sex;
    public int salary;

    public ManKind(int sex, int salary) {
        this.sex = sex;
        this.salary = salary;
    }

    public ManKind() {
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public void manOrWoman() {
        System.out.println(sex == 1 ? "man" : "woman");
    }

    public void employed() {
        System.out.println(salary == 0 ? "no job" : "job");
    }
}
